package com.godpaper.game.chess.twoHitOne
{
	import de.polygonal.ds.Array2;
	
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	[Bindable]
	public class Board extends EventDispatcher implements IBoard
	{
		public static const ROW:int = 4;
		public static const COLUMN:int = 4;
		
		
		public function Board(target:IEventDispatcher=null)
		{
			//TODO: implement function
			super(target);
			status = new Array2(ROW,COLUMN);
			trace("Board status: "+status);
			sprintf();
		}
		
		
		public var status:Array2;//x,y,Flag:-1(computer),1(human)
		
		public function sprintf():void
		{
			trace("////////////////////////display board data begin///////////////////");	  
			for(var i:int=0;i<ROW;i++)
			{
				for(var j:int=0;j<COLUMN;j++)
				{
					
					trace("Board status sprintf:["+i+"]["+j+"]= "+status.gett(i,j));
					
				}
			} 
			trace("////////////////////////display board data end///////////////////");	
		}
	}
}